#ifndef WINDOW_H
#define WINDOW_H

#include <QtGui/QMainWindow>
#include <QDialog>
#include <QFileDialog>
#include <QSettings>
#include <QDir>

#include "../srv/sockserver.h"

namespace Ui
{
    class windowClass;
}

class window : public QMainWindow
{
    Q_OBJECT

public:
    window(QWidget *parent = 0);
    ~window();
    sockServer server;

public slots:
    void on_start_clicked();
    void on_restart_clicked();
    void on_stop_clicked();
    void on_browse_clicked();
    void clientCountChanged(int count);

protected:
    void loadValues();
    void saveValues();
    void serverStart();
    void serverStop();

private:
    Ui::windowClass *ui;
    QSettings setts;

};

#endif // WINDOW_H
